<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String UserNumber = request.getParameter("usernumber");
String finduser = (String)session.getAttribute("finduser");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>个人信息 -同学录 </title>
    
	<meta name="title" content="个人信息 - 同学录" >
	<meta name="description" content="毕业后，又有多少人与同学断了联系" >
	<meta name="keywords" content="留言" >
    <meta http-equiv="Cache-Control" content="no-cache,no-transform,no-siteapp" />
	<meta http-equiv="Pragma" content="no-cache" />	<meta http-equiv="Expires" content="0" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<!--
	<link href="images/t1-1.png" type="image/x-icon" rel="shortcut icon">
	-->
	
	<script src="js/alert.js" type="text/javascript"></script>
	
	<link rel="stylesheet" type="text/css" href="css/footer.css" >
	<link href="css/picpas.css" rel="stylesheet">
	<link href="css/all.css" rel="stylesheet" />
	
  </head>
  
  
<body id="tuchong-com" class="default-p has-subnav" width="100%" style="position:relative;">
<div>
	<%@ include file="header.jsp" %>
</div>

<style>
.dialog h2{
text-indent: 1em;
background:#2b9617;
margin: 0;

height: 35px;
padding-top: 9px;
color: #FFF;
font-size: 16px;
font-weight: bold;
}


.dialog-body {
background-color: #FFF;
padding: 20px 8px;
position: relative;
overflow: hidden;
}
.form-group {
margin-left: -7px;
margin-right: -7px;
}

</style>
<%@ page import= "java.sql.*"%>
<%@ page import= "com.connect.connect"%>
<%
    connect conn =new connect();
	Connection con = conn.con();
	String UserName="";
	String UserSex="";
	String Birthdate="";String year="";String month="";String day="";
	String Zodiac="";
	String UserPhone="";
	String UserEmail="";
	String University="";
	String Fication="";
	String Time="";
	
	ResultSet rs;
	try{
		Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
	    rs=stmt.executeQuery("SELECT * FROM person WHERE UserNumber ='"+UserNumber+"'");
	    if(rs.next()){
	        UserName=rs.getString("UserName");
	        UserSex=rs.getString("UserSex");
	        Birthdate=rs.getString("Birthdate");
	        Zodiac=rs.getString("Zodiac");
	        UserPhone=rs.getString("UserPhone");
	        UserEmail=rs.getString("UserEmail");
	        University=rs.getString("University");
	        Fication=rs.getString("Fication");
	        Time=rs.getString("Time");
	    }
	    con.close();
	}catch(SQLException e){
		e.printStackTrace();
    }
    if(Birthdate.equals("")){
    } else {
        year=Birthdate.substring(0,4);
        month=Birthdate.substring(5,7);
        day=Birthdate.substring(8,10);
    }
%>

<div style="position:absolute; width:90%; height:80%;margin-left:5%;margin-top:2% ">    
    <img src="images/person_other_back.jpg" height="100%" width="100%"/>       

</div>
<div class="container container-default" style="margin-left:730px;marin-top:100px">	
<main style="width:600px">
		<h1 class="card-header-larger"></h1>
        <form id="regForm" class="form-horizontal form-mobile inner" action="person.do" method="post" style="margin-left:120px;padding-top:70px">
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regname">账号:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=UserNumber %></span>
				</div>
			</div>	
	
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regname">真实姓名:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=UserName %></span>
				</div>
			</div>		
			
			<div class="form-group form-group-mobile">
				<label class="col-xs-2 control-label" for="regMobile">性别:</label>
				<div class="col-xs-6">
					<%
					    if("1".equals(UserSex)){
					%>
                        <span class="help-block">男</span>
					<%
					    } else if("0".equals(UserSex)){
					%>
						<span class="help-block">女</span>				
					<%
					    } else {
					%>
						<span class="help-block">未知</span>
					<% 
					    }
					%>
					<span class="help-block" id="sex_inner" style="color:#FF0000"></span>
				</div>	
			</div>
			
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regbith">出生日期:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=Birthdate %></span>
				</div>
			</div>
			
			
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regzodiac">星座:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=Zodiac%></span>
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regphone">手机号:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=UserPhone%></span>
				</div>	
			</div>
			
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regemail">邮箱:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=UserEmail%></span>
				</div>
			</div>	
					
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regschool">所在学校:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=University%></span>
				</div>
			</div>		
			
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regfication">个人说明:</label>
				<div class="col-xs-6">
					<span class="help-block"><%=Fication%></span>
				</div>
			</div>	
			
			<div class="form-group">
				<label class="col-xs-2 control-label" for="regtime">注册时间:</label>
                <div class="col-xs-6">
                     <span class="help-block"><%=Time %></span>
                </div>
			</div>		
			<div class="form-group" style="margin-left:200px;padding-top:40px">
					<span style="font-size: 20sp">点击此处&nbsp;&nbsp;<a  class="btn btn-primary" href="classmates.jsp?finduser=<%=finduser%>" >返回</a></span>
			</div>
		</form>

</main>

</div>


<%@ include file="footer.jsp" %>

<!--[if lt IE 9]>
<iframe class="bc-warn" src="browsercheck.html" frameborder="0"></iframe>
<div class="bc-screen-lock"></div>
<link href="http://static.tuchong.net/styles/ie-checker.css?1435126808.css" rel="stylesheet" />
<![endif]-->
<div class="back-to-top direction-caret big"></div>


</body> 
</html>
